package com.book.dutychain;

import com.book.pojo.BusinessLaunch;

import java.util.List;

/**
 * @param
 * @author oyz
 * @version 1.0.4
 * @description: 责任链抽象责任者,类似于链表的写法
 * @date 2024/4/9 21:26
 */
public abstract class AbstractBuinessHandler {

    // 定义下一个责任链
    public AbstractBuinessHandler nextHandler;

    // 判断下一个节点
    public boolean hasNextHandler() {
        return this.nextHandler != null;
    }

    // 定义抽象责任链方法
    public abstract List<BusinessLaunch> doHandler(List<BusinessLaunch> businessLaunchList,String ... args);
}




